package com.escape.subject.domain.convert;

import com.escape.subject.domain.entity.SubjectCategoryBO;
import com.escape.subject.domain.entity.SubjectInfoBO;
import com.escape.subject.domain.entity.SubjectOptionBO;
import com.escape.subject.infra.basic.entity.SubjectCategory;
import com.escape.subject.infra.basic.entity.SubjectInfo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author: escape_zebra
 * @CreateTime: 2024-12-18  12:19
 * @Description: TODO
 * @Version: 1.0
 */
@Mapper
public interface SubjectInfoConvert {

    SubjectInfoConvert INSTANCE = Mappers.getMapper(SubjectInfoConvert.class);

    SubjectInfo convertBoToInfo(SubjectInfoBO subjectInfoBO);

    SubjectInfoBO convertOptionAndInfoToBo(SubjectOptionBO subjectOptionBO,SubjectInfo subjectInfo);

    List<SubjectInfoBO> convertInfoListToBoList(List<SubjectInfo> list);
}
